﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace TransformeXmlEnCsv
{
	class WriteFile
	{
		public string PathFileWrite{get;set;}


		public WriteFile(string cheminOuSave)
		{
			PathFileWrite = cheminOuSave;
		}


		/// <summary>
		/// Permet d'inscrire dans un fichier.
		/// </summary>
		/// <param name="chaineDeCaratere"></param>
		/// <returns>Retourne TRUE si tout est ok.</returns>
		public void EcritureDuFichier(string chaineDeCaratere)
		{
			File.WriteAllText(this.PathFileWrite, chaineDeCaratere);
		}

	}
}
